<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    var obj={
        name:'老王',
        age: 35,
        sex: '男'
    }
    for(var k in obj){
        console.log(obj[k]);
    }
    //for  in 遍历对象
    /*for (变量in对象){
        
    }*/


</script>
<body>
    
</body>
</html>